From f593747666677c4c1e2e250329c64956b732e61f Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 1 Mar 2018 15:09:38 +0100 Subject: [PATCH] libxc: really tolerate empty PV records Commit 119ee4d773 ("tools/libxc: Tolerate specific zero-content records in migration v2 streams") meant tolerate those, but failed to set rc accordingly. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Reviewed-by: Wei Liu --- tools/libxc/xc_sr_restore_x86_pv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxc/xc_sr_restore_x86_pv.c b/tools/libxc/xc_sr_restore_x86_pv.c index ed0fd0ead9..d81dfdcca6 100644 --- a/tools/libxc/xc_sr_restore_x86_pv.c +++ b/tools/libxc/xc_sr_restore_x86_pv.c @@ -770,6 +770,7 @@ static int handle_x86_pv_vcpu_blob(struct xc_sr_context *ctx, { DBGPRINTF("Skipping empty %s record for vcpu %u\n", rec_type_to_str(rec->type), vhdr->vcpu_id); + rc = 0; goto out; } -- 2.30.2